package ${package}.${module.packageName}.service;

import com.goldgov.kcloud.core.service.Query;
<@point name="JAVA:IMPORT" />
<#assign classComment = "${module.explain}查询对象">
<#include "../javadoc/classComment.ftl">
public class ${module.name}Query extends Query<${module.name}>{
	
	<#list module.fields as field>
	<#if (field.constraint.queryType)??>
		<#if field.constraint.queryType == 'RANGE'>
	private ${field.type.simpleJavaType} search${field.name ? cap_first}Start;<#if (field.explain)??>//查询${field.explain}开始</#if>
	private ${field.type.simpleJavaType} search${field.name ? cap_first}End;<#if (field.explain)??>//查询${field.explain}结束</#if>	
		<#else>
	private ${field.type.simpleJavaType} search${field.name ? cap_first};<#if (field.explain)??>//查询${field.explain}</#if>
		</#if>
	</#if>
	</#list>
	
	<#list module.fields as field>
	<#if (field.constraint.queryType)??>
		<#if field.constraint.queryType == 'RANGE'>
	public void setSearch${field.name ? cap_first}Start(${field.type.simpleJavaType} search${field.name ? cap_first}Start){
		this.search${field.name ? cap_first}Start = search${field.name ? cap_first}Start;
	}
	
	public ${field.type.simpleJavaType} getSearch${field.name ? cap_first}Start(){
		return search${field.name ? cap_first}Start;
	}
	
	public void setSearch${field.name ? cap_first}End(${field.type.simpleJavaType} search${field.name ? cap_first}End){
		this.search${field.name ? cap_first}End = search${field.name ? cap_first}End;
	}
	
	public ${field.type.simpleJavaType} getSearch${field.name ? cap_first}End(){
		return search${field.name ? cap_first}End;
	}
		<#else>
	public void setSearch${field.name ? cap_first}(${field.type.simpleJavaType} search${field.name ? cap_first}){
		this.search${field.name ? cap_first} = search${field.name ? cap_first};
	}
	
	public ${field.type.simpleJavaType} getSearch${field.name ? cap_first}(){
		return search${field.name ? cap_first};
	}
		</#if>
	</#if>
	</#list>
}